package com.winter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.winter.model.Friend;
import com.winter.model.UserCompanyBean;

public interface FriendMapper {
    int insert(Friend record); 

    int insertSelective(Friend record);
    
    Friend selectByPrimaryKey(String id);
    
    int deleteByPrimaryKey(String id);
    
    int updateByPrimaryKeySelective(Friend record);
    
    Friend selectByFriendUser(@Param("userNo")String userNo,@Param("companyUser")String companyUser);
    
    List<Friend> findFriendList(@Param("userNo")String userNo);
    
    /*
     * 我的好友列表
     * 
     */
    List<UserCompanyBean> friendList(@Param("userNo")String userNo);
}